<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 1. 利用Object创建对象    new 新创建一个对象(实例对象)
        // Object是所有对象的顶级对象 

        var obj = new Object();
        obj.name = '张三';
        obj.age = 38;
        obj.sex = '男';
        obj.run = function () {
            alert('I can running...');
        }

        // 调用对象的属性和方法

        console.log('obj的name是：' + obj.name);
        console.log('obj的性别是：' + obj.sex);
        obj.run();
    </script>
</body>
</html>